<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- /fasttmp/mkdist-qt-4.3.5-1211793125/qtopia-core-opensource-src-4.3.5/src/corelib/io/qurl.cpp -->
<head>
  <title>Qt 4.3: Qt 3 Support Members for QUrl</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://www.trolltech.com/products/qt"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
<td align="right" valign="top" width="230"><a href="http://www.trolltech.com"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></a></td></tr></table><h1 align="center">Qt 3 Support Members for QUrl</h1>
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
<p><ul><li><a href="qurl.html">QUrl class reference</a></li></ul></p>
<h3>Public Functions</h3>
<ul>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#addPath">addPath</a></b> ( const QString &amp; <i>p</i> )</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#cdUp">cdUp</a></b> ()</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#dirPath">dirPath</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#fileName">fileName</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasHost">hasHost</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasPassword">hasPassword</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasPath">hasPath</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasPort">hasPort</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasRef">hasRef</a></b> () const</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#hasUser">hasUser</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#protocol">protocol</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#query">query</a></b> () const</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#ref">ref</a></b> () const</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#setFileName">setFileName</a></b> ( const QString &amp; <i>txt</i> )</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#setProtocol">setProtocol</a></b> ( const QString &amp; <i>s</i> )</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#setQuery">setQuery</a></b> ( const QString &amp; <i>txt</i> )</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#setRef">setRef</a></b> ( const QString &amp; <i>txt</i> )</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#setUser">setUser</a></b> ( const QString &amp; <i>s</i> )</li>
<li><div class="fn"/>QString <b><a href="qurl-qt3.html#user">user</a></b> () const</li>
<li><div class="fn"/><b><a href="qurl-qt3.html#operator-QString">operator QString</a></b> () const</li>
</ul>
<h3>Static Public Members</h3>
<ul>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#decode">decode</a></b> ( QString &amp; <i>url</i> )</li>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#encode">encode</a></b> ( QString &amp; <i>url</i> )</li>
<li><div class="fn"/>bool <b><a href="qurl-qt3.html#isRelativeUrl">isRelativeUrl</a></b> ( const QString &amp; <i>url</i> )</li>
</ul>
<h3>Protected Functions</h3>
<ul>
<li><div class="fn"/>void <b><a href="qurl-qt3.html#reset">reset</a></b> ()</li>
</ul>
<hr />
<h2>Member Function Documentation</h2>
<h3 class="fn"><a name="addPath"></a>void QUrl::addPath ( const <a href="qstring.html">QString</a> &amp; <i>p</i> )</h3>
<p>Use <a href="qurl.html#setPath">setPath</a>() instead.</p>
<h3 class="fn"><a name="cdUp"></a>bool QUrl::cdUp ()</h3>
<p>Use resolved(&quot;..&quot;) instead.</p>
<p>For example, if you have code like</p>
<pre><font color="#404040"> QUrl url(&quot;http://www.trolltech.com/Developer/&quot;);
 url.cdUp();</font></pre>
<p>you can rewrite it as</p>
<pre> QUrl url(&quot;http:<span class="comment">//</span>www.trolltech.com/Developer/&quot;);
 url = url.resolved(&quot;..&quot;);</pre>
<h3 class="fn"><a name="decode"></a>void QUrl::decode ( <a href="qstring.html">QString</a> &amp; <i>url</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#fromPercentEncoding">fromPercentEncoding</a>() instead.</p>
<h3 class="fn"><a name="dirPath"></a><a href="qstring.html">QString</a> QUrl::dirPath () const</h3>
<p>Use <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#path">path</a>()).absolutePath() or <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#path">path</a>()) instead.</p>
<h3 class="fn"><a name="encode"></a>void QUrl::encode ( <a href="qstring.html">QString</a> &amp; <i>url</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#toPercentEncoding">toPercentEncoding</a>() instead.</p>
<h3 class="fn"><a name="fileName"></a><a href="qstring.html">QString</a> QUrl::fileName () const</h3>
<p>Use <a href="qfileinfo.html">QFileInfo</a>(<a href="qurl.html#path">path</a>()).fileName() instead.</p>
<p>See also <a href="qurl-qt3.html#setFileName">setFileName</a>().</p>
<h3 class="fn"><a name="hasHost"></a>bool QUrl::hasHost () const</h3>
<p>Use !<a href="qurl.html#host">host</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<h3 class="fn"><a name="hasPassword"></a>bool QUrl::hasPassword () const</h3>
<p>Use !<a href="qurl.html#password">password</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<h3 class="fn"><a name="hasPath"></a>bool QUrl::hasPath () const</h3>
<p>Use !<a href="qurl.html#path">path</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<h3 class="fn"><a name="hasPort"></a>bool QUrl::hasPort () const</h3>
<p>Use <a href="qurl.html#port">port</a>() != -1 instead.</p>
<h3 class="fn"><a name="hasRef"></a>bool QUrl::hasRef () const</h3>
<p>Use !<a href="qurl.html#fragment">fragment</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<h3 class="fn"><a name="hasUser"></a>bool QUrl::hasUser () const</h3>
<p>Use !<a href="qurl.html#userName">userName</a>().<a href="qurl.html#isEmpty">isEmpty</a>() instead.</p>
<h3 class="fn"><a name="isRelativeUrl"></a>bool QUrl::isRelativeUrl ( const <a href="qstring.html">QString</a> &amp; <i>url</i> )&nbsp;&nbsp;<tt> [static]</tt></h3>
<p>Use <a href="qurl.html#isRelative">isRelative</a>() instead.</p>
<h3 class="fn"><a name="protocol"></a><a href="qstring.html">QString</a> QUrl::protocol () const</h3>
<p>Use <a href="qurl.html#scheme">scheme</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#setProtocol">setProtocol</a>().</p>
<h3 class="fn"><a name="query"></a><a href="qstring.html">QString</a> QUrl::query () const</h3>
<p>Use <a href="qurl.html#encodedQuery">encodedQuery</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#setQuery">setQuery</a>().</p>
<h3 class="fn"><a name="ref"></a><a href="qstring.html">QString</a> QUrl::ref () const</h3>
<p>Use <a href="qurl.html#fragment">fragment</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#setRef">setRef</a>().</p>
<h3 class="fn"><a name="reset"></a>void QUrl::reset ()&nbsp;&nbsp;<tt> [protected]</tt></h3>
<p>Use <a href="qurl.html#clear">clear</a>() instead.</p>
<h3 class="fn"><a name="setFileName"></a>void QUrl::setFileName ( const <a href="qstring.html">QString</a> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setPath">setPath</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#fileName">fileName</a>().</p>
<h3 class="fn"><a name="setProtocol"></a>void QUrl::setProtocol ( const <a href="qstring.html">QString</a> &amp; <i>s</i> )</h3>
<p>Use <a href="qurl.html#setScheme">setScheme</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#protocol">protocol</a>().</p>
<h3 class="fn"><a name="setQuery"></a>void QUrl::setQuery ( const <a href="qstring.html">QString</a> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setEncodedQuery">setEncodedQuery</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#query">query</a>().</p>
<h3 class="fn"><a name="setRef"></a>void QUrl::setRef ( const <a href="qstring.html">QString</a> &amp; <i>txt</i> )</h3>
<p>Use <a href="qurl.html#setFragment">setFragment</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#ref">ref</a>().</p>
<h3 class="fn"><a name="setUser"></a>void QUrl::setUser ( const <a href="qstring.html">QString</a> &amp; <i>s</i> )</h3>
<p>Use <a href="qurl.html#setUserName">setUserName</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#user">user</a>().</p>
<h3 class="fn"><a name="user"></a><a href="qstring.html">QString</a> QUrl::user () const</h3>
<p>Use <a href="qurl.html#userName">userName</a>() instead.</p>
<p>See also <a href="qurl-qt3.html#setUser">setUser</a>().</p>
<h3 class="fn"><a name="operator-QString"></a>QUrl::operator QString () const</h3>
<p>Use <a href="qurl.html#toString">toString</a>() instead.</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="30%" align="right"><div align="right">Qt 4.3.5</div></td>
</tr></table></div></address></body>
</html>
